<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">

<f:loadBundle basename="resources.application" var="msg"/>

<h:head>
	<link rel="stylesheet" type="text/css" href="CSS/stylesheet.css"></link>
	<title><h:outputText value="#{msg.loginTitle}" /></title>
</h:head>

<h:body>	
	<h:form id="loginForm">		
		<p:outputLabel for="email" value="#{msg.email}:"></p:outputLabel>
		<p:inputText id="email" value="#{bookController.book.isbn}" required="true"></p:inputText>
		<br/>
		<br/>	
		<p:outputLabel for="password" value="#{msg.password}:"></p:outputLabel>
		<p:password id="password" value="#{bookController.book.title}" required="true"></p:password>			
		<br/>
		<br/>	
		<p:commandButton id="loginButton" style="width: 228px" value="#{msg.login}" update="loginForm" action="#{bookController.createBook}"></p:commandButton>
		<p:link id="notRegisteredYet" value="#{msg.notRegisteredYet}" href="register.xhtml"></p:link>
	</h:form>
	<hr/>
	<i>#{msg.copyright}</i>
</h:body>
</html>
